@namespace SwashbucklerDiary.Rcl.Components
@inherits DialogComponentBase

<CustomMDialog MyValue="Visible"
               MyValueChanged="InternalVisibleChanged"
               ContentClass="rounded-lg"
               MaxWidth="420"
               OnBeforeShowContent="BeforeShowContent">
    <MDatePicker @bind-Value="internalValue"
                 Class="rounded-lg pt-4 my-picker"
                 FullWidth="true"
                 NoTitle="true"
                 Scrollable="true"
                 Color="primary"
                 Events="Events"
                 EventColor='EventColor'
                 Min="Min"
                 Max="Max">
        <MSpacer></MSpacer>
        <MButton Text="true"
                 OnClick="HandleOnCancel">
            @(I18n.T("Cancel"))
        </MButton>
        <MButton Text="true"
                 Color="primary"
                 OnClick="HandleOnOK">
            @(I18n.T("OK"))
        </MButton>
    </MDatePicker>
</CustomMDialog>
